using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrOverseaRateDtls")]
    public class PrOverseaRateDtls
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RateDtlsId", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public int RateDtlsId { get; set; }

		[ForeignKey("Rate")]
		[DataMember, Display(Name = "RateId", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> RateId { get; set; }

		[ForeignKey("Country")]
		[DataMember, Display(Name = "CountryId", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> CountryId { get; set; }

		[ForeignKey("Class")]
		[DataMember, Display(Name = "ClassId", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> ClassId { get; set; }

		[DataMember, Display(Name = "RateAmount", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<double> RateAmount { get; set; }

		[ForeignKey("Currency")]
		[DataMember, Display(Name = "CurrencyId", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> CurrencyId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrOverseaRateDtlsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember]
		public virtual PrSalaryRate Rate { get; set; }

        [DataMember]
		public virtual MasCountry Country { get; set; }

        [DataMember]
		public virtual MpClass Class { get; set; }

        [DataMember]
		public virtual MasCurrency Currency { get; set; }

    }
}